package com.wechatpay.v3.vo;

import com.wechatpay.v3.constants.WechatPayResultCode;

/**
 * 微信支付统一下单 - 返回数据封装
 *
 * @author liuyi <liuy@pvc123.com>
 * @since 2021/8/2
 */
public class UnifiedOrderResult extends WechatResult {

    /** 微信支付返回的预支付id, 适用于app,jsapi,小程序支付 */
    private String prepayId;
    /** 微信支付返回的调起支付url，适用于h5*/
    private String h5Url;
    /** 微信支付返回的二维码url，适用于扫码支付*/
    private String codeUrl;

    private String appId;
    private String timestamp;
    private String nonceStr;
    private String signType;
    private String paySign;

    public UnifiedOrderResult() {
        super(WechatPayResultCode.SUCCESS, "操作成功");
        this.signType = "RSA";
    }

    public UnifiedOrderResult(String code, String message) {
        super(code, message);
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getH5Url() {
        return h5Url;
    }

    public void setH5Url(String h5Url) {
        this.h5Url = h5Url;
    }

    public String getCodeUrl() {
        return codeUrl;
    }

    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getPaySign() {
        return paySign;
    }

    public void setPaySign(String paySign) {
        this.paySign = paySign;
    }
}
